#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include<QTcpServer>
#include<QTcpSocket>
#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QString getLocalIP();
    QTcpSocket *tcpClient;
    void do_connect(QString s1);
private slots:
    void do_connected();
    void do_disconnected();
    void do_socketStateChange(QAbstractSocket::SocketState socketState);
    void do_socketReadyRead();

    void on_pushButton_3_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::MainWindow *ui;

};

#endif // MAINWINDOW_H
